// const blockDemo = require("./../../src/docsutil");
// const {defaultTheme} = require("@vuepress/theme-default");
// const {viteBundler} = require("@vuepress/bundler-vite");

import blockDemo from "./../../src/docsutil";
import {defaultTheme} from "@vuepress/theme-default";
import {viteBundler} from "@vuepress/bundler-vite";
import guide from "../guide/index";
import web from "../web/index";
import mobile from "../mobile/index";

module.exports = {
    title: "一码平台",
    description: "简化开发与交付，一码成就",
    port: 9988,
    locales: {
        '/': {
            lang: 'zh-CN',
            title: '一码平台',
            description: "简化开发与交付，一码成就",
        },
        '/en/': {
            lang: 'en-US',
            title: 'OneCode',
            description: "Simplify development and delivery",
        }
    },
    head: [
        ["link", {rel: "icon", href: "/assets/logo.png"}]
    ],
    bundler: viteBundler({}),
    theme: defaultTheme({
        navbar: [
            {
                text: "主页",
                link: "/"
            },
            {
                text: "指南",
                link: "/guide/"
            },
            {
                text: "PC端",
                link: "/web/"
            },
            {
                text: "移动端",
                link: "/mobile/"
            },
            {
                text: "示例",
                link: "https://bind.com/"
            },
        ],
        sidebar: {
            "/guide/": guide,
            "/web/": web,
            "/mobile/": mobile,
        }
    }),
    plugins: [
        [
            blockDemo({
                path: __dirname,
            }),
        ],
    ],
    markdown: {
        lineNumbers: true,
    },
};